$("#input_ALL_START_TIME").datebox({
	onChange: function(newValue, oldValue) {
		WriteTime(newValue, oldValue, "BEGIN_DATE");
	}
});

$("#input_ALL_END_TIME").datebox({
	onChange: function(newValue, oldValue) {
		WriteTime(newValue, oldValue, "END_DATE");
	}
});

function WriteTime(newValue, oldValue, field) {
	if(newValue != "") {
		var dataGridRows = $("#tt").datagrid("getRows");
		for(var i = 0; i < dataGridRows.length; i++) {
			var s = newValue;
			var m = new Object();
			m[field] = s;
			$('#tt').edatagrid('updateRow', {
				index: i,
				row: m,
			});

		}
	}
}

